var base_url_update_cache = '/op/ucache';

var navs = [];
var operation = "add";
var currentPageNo = 1;
var pageRows = 10;

$(function() {
    authName = getCookie('username');
});

function onUpdateCacheClick() {
    if(confirm("确认要更新缓存？")) {
        zhpost(base_url_update_cache , {
            AUTHNAME:authName
        }, function (result) {
            var rs = JSON.parse(result);
            if (rs && rs.outcome == 1) {
                showSuccess('缓存更新成功！');
            } else {
                showError('缓存更新失败！');
            }
        });
    }
}
